From: Florian Müllner Date: Sun, 27 Oct 2013 10:16:14 +0000 (+0100) Subject: notificationDaemon: Fix urgency hint X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3156 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=04d28a0eea3006f2f90f321bc38f08a73ae5853a;p=gnome-shell.git notificationDaemon: Fix urgency hint We currently mark notifications as urgent which merely contain the 'urgent' property, even when set to false. Look at the actual value instead. https://bugzilla.gnome.org/show_bug.cgi?id=710596 --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index b956db06c..a1b76ab15 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -732,7 +732,8 @@ const GtkNotificationDaemonNotification = new Lang.Class({ "default-action": defaultAction, "default-action-target": defaultActionTarget } = notification; - this.setUrgency(urgent ? MessageTray.Urgency.CRITICAL : MessageTray.Urgency.NORMAL); + this.setUrgency(urgent.unpack() ? MessageTray.Urgency.CRITICAL + : MessageTray.Urgency.NORMAL); if (buttons) { buttons.deep_unpack().forEach(Lang.bind(this, function(button) {